package org.example.util;

/**
 * @author huangshen
 * @version 0
 * @description MapKeyComparator
 * @since 2022/1/28 17:29
 */

import java.util.Comparator;

/**
 * 自定义比较器
 */
public class MapKeyComparator implements Comparator<Integer> {

    @Override
    public int compare(Integer str1, Integer str2) {
        return str2.compareTo(str1);
    }
}
